package xuegao.study.mall.admin.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import xuegao.study.mall.admin.service.cache.UmsAdminCacheService;

import javax.annotation.PostConstruct;

@Component
public class ResourceRoleRulesHolder {

    @Autowired
    private UmsAdminCacheService umsAdminCacheService;

    @PostConstruct
    public void initResourceRolesMap(){
        umsAdminCacheService.initResourceRoles();
    }

}
